package com.es.pay.visitorScore;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class DeleteVisitorScoreDoAction extends ActionSupport implements ServletRequestAware{

	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	public String execute()throws Exception
	{
	   String vgid = request.getParameter("vgid");
	   VisitorScoreBiz biz = new VisitorScoreBiz();
	   boolean bool = biz.deleteVisitorGradeDo(vgid);
	   if(bool)
		   request.setAttribute("message", "删除神访评分操作成功！");
	   else
		   request.setAttribute("message", "删除神访评分操作产生错误！");
	   return "success";
	}

	public void setServletRequest(HttpServletRequest request) {
	     this.request = request;
	}
	
}
